﻿#pragma once


namespace Base {

	using LLong = long long;

	class Timer {
	public:
		Timer();
		~Timer();

		void Tick();

		int GetFPS() const { return m_fps; }

		inline static float GetDeltaTime() { return s_delteTime; }

	private:

		int m_fps = 0;
		int m_fpsCounter = 0;
		LLong m_lastTimeMs;

		float m_totalTime = 0;

	public:

		static LLong GetMS();


	public:
		static Timer* s_Timer;
		static float s_delteTime;
	};


}
